package de.koller.million.enc;

import de.koller.million.enc.engine.Engine;
import de.koller.million.enc.network.Network;

public class EncServerRoot extends EncNode {
	
	public static final String TITLE = "ENC Server v0.1";
	
	public final Engine engine = new Engine();
	public final Network network = new Network();

	@Override
	public void generate( EncServerRoot root, Object... references ) {
		super.generate( root, references );
		
		System.out.println( TITLE );
		this.addNode( engine );
		this.addNode( network );
	}
	
	public void start() {
		engine.loop();
	}
	
}
